import type { IFormItem } from '@/components/NFormBuilder/types'
import type { CreateFormItemsOptions } from '@/types/fcform'
import { ScConstants } from '@/components/NFormBuilder/unit/ScConstants'
import AuthItem from './components/AuthItem.vue'
export const createFormItems = (options: CreateFormItemsOptions): IFormItem[] => {
  const sc = new ScConstants(24)
  return [
    sc.other('权限', 'menuIds', AuthItem, {
      options: options.treeList,
    }),
  ]
}
